import java.util.stream.IntStream;

public class MiniDemo {

    public static void main(String[] args) {
        int[] nums = {33,55,-55,90,-666,90};

        int min = Integer.MAX_VALUE;

        for (int i : nums) {
            if (i < min){
                min = i;
            }
        }
        System.out.println(min);
        int min2 = IntStream.of(nums).min().getAsInt();
        System.out.println(min2);

    }
}
